Skip to main content

dontWrap

Type​

property

Summary​

Specifies whether the text in a paragraph or field word-wraps when it reaches the field's right edge.

Syntax​

set the dontWrap [of <line>] of <field> to {true | false}

Description​

Use the dontWrap property to control whether lines of text in a field wrap or not.

By default, the dontWrap property of newly created fields is set to false.

If a field's dontWrap property is false, the text in the field wraps to the next line automatically when it reaches the right edge of the field, so all the text is visible in the field's width.

If the dontWrap is true, lines that are too long to fit in the width of the field disappear off the right edge of the field. (The excess text is still in the field--it just can't be seen.) To edit long lines in a field whose dontWrap is true, set the field's hScrollbar to true to display a horizontal scrollbar.

note

The dontWrap property is always true for any field with the listBehavior property set to true, setting the dontWrap to false on such a field has no affect.

Examples​

set the dontWrap of field 1 to true
set the dontWrap of line 1 of field 1 to true

Value​

NameTypeDescription

value

bool

The dontWrap of a field is true or false.

object: field

property: hScrollbar, listDepth, borderColor, tabstops, listBehavior, formattedWidth, textAlign, spaceBelow, rightIndent, firstIndent, formattedText, borderWidth, hgrid, spaceAbove, vgrid, hidden, backgroundColor, listStyle

glossary: property

keyword: field

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?